-- GENERATED SPELL FOR [Eramas Brightblaze] --


function spell0_24554(pUnit, Event) --@Drink Healing Potion,Self--
pUnit:FullCastSpellOnTarget(15503,pUnit)
pUnit:RegisterEvent('Sorts_24554', 542, 1)
end

function spell1_24554(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24554', 2343, 1)
end

function spell2_24554(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(46183,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24554', 2000, 1)
end

function spell3_24554(pUnit, Event) --@Medallion of Immunity,Self--
pUnit:FullCastSpellOnTarget(46227,pUnit)
pUnit:RegisterEvent('Sorts_24554', 263, 1)
end

function spell4_24554(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(46182,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24554', 2286, 1)
end

function Sorts_24554(pUnit, Event)
local choix_sorts_24554 = math.random(0, 4)
if choix_sorts_24554 == 0 then
pUnit:RegisterEvent('spell0_24554', 1, 1)
end
if choix_sorts_24554 == 1 then
pUnit:RegisterEvent('spell1_24554', 1, 1)
end
if choix_sorts_24554 == 2 then
pUnit:RegisterEvent('spell2_24554', 1, 1)
end
if choix_sorts_24554 == 3 then
pUnit:RegisterEvent('spell3_24554', 1, 1)
end
if choix_sorts_24554 == 4 then
pUnit:RegisterEvent('spell4_24554', 1, 1)
end
end

function mob24554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24554', math.random(1500, 3000), 1)
end

function mob24554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24554, 1, 'mob24554_Action')
RegisterUnitEvent(24554, 2, 'mob24554_Leave')
RegisterUnitEvent(24554, 3, 'mob24554_Kill')
RegisterUnitEvent(24554, 4, 'mob24554_Die')
